package com.gupao.demo.annotation.imports;import com.gupao.project.entity.Monkey;//import com.sun.istack.internal.Nullable;import org.springframework.beans.factory.FactoryBean;import org.springframework.stereotype.Component;public class MyFactoryBean  implements FactoryBean<Monkey> {//    @Nullable    @Override    public Monkey getObject() throws Exception {        return new Monkey();    }    @Override    public Class<?> getObjectType() {        return Monkey.class;    }    @Override    public boolean isSingleton() {        return true;    }}